import request from '@/utils/requestByForm'

// 获取攻略信息
export function strategyList(params) {
  return request({
    url: 'api/strategy-list',
    method: 'get',
    params
  })
}

export function getStrategyInfo(params) {
  return request({
    url: 'api/get-strategy-info/' + params,
    method: 'get'
  })
}

// 修改攻略信息
export function updateStrategy(data) {
  return request({
    url: 'api/update-strategy',
    method: 'post',
    data: data
  })
}

// 增加攻略信息
export function insertStrategy(data) {
  return request({
    url: 'api/insert-strategy',
    method: 'post',
    data: data
  })
}
// 删除攻略信息
export function deleteStrategy(data) {
  return request({
    url: 'api/delete-strategy',
    method: 'post',
    data: data
  })
}
